package com.oig.base.api.factory;

import com.oig.base.api.CurrRateService;
import com.oig.base.api.fallback.CurrRateServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class CurrRateFallBackFactory implements FallbackFactory<CurrRateService> {

    @Override
    public CurrRateService create(Throwable cause) {
        CurrRateServiceFallBackImpl currRateServiceFallback = new CurrRateServiceFallBackImpl();
        currRateServiceFallback.setCause(cause);
        return currRateServiceFallback;
    }

}
